
using Abp.Application.Services.Dto;
using Abp.Authorization;
using Abp.AutoMapper;
using Abp.Linq.Extensions;
using Abp.Extensions;
using Abp.Domain.Repositories;
using L._52ABP.Application.Dtos;
using L._52ABP.Common.Extensions.Enums;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Threading.Tasks;
using LTMCompanyName.YoyoCmsTemplate.Students.Students;
using LTMCompanyName.YoyoCmsTemplate.Students.Students.Dtos;
using LTMCompanyName.YoyoCmsTemplate.Students.Students.DomainService;
using LTMCompanyName.YoyoCmsTemplate.Authorization;

namespace LTMCompanyName.YoyoCmsTemplate.Students.Students
{
    /// <summary>
    /// 应用层服务的接口实现方法
	/// <see cref="Student_Student" />
    ///</summary>

    [AbpAuthorize]
    public class Student_StudentAppService : YoyoCmsTemplateAppServiceBase, IStudent_StudentAppService
    {



        private readonly IStudent_StudentManager _student_StudentManager;
        private readonly IRepository<Student_Student, long> _repository;

        /// <summary>
        /// 构造函数
        ///</summary>

        public Student_StudentAppService(IStudent_StudentManager student_StudentManager)
        {
            _student_StudentManager = student_StudentManager;
        }

        /// <summary>
        /// 输入微信id 返回学生数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public async Task<Student_Student> GetPaged(Student_StudentDto model )
        {
            var entity = _repository.GetAll().Where(x => x.WeixinOpenId == model.WeixinOpenId).FirstOrDefault();
            if (entity == null)
            { 

            }
            else
            {

            }
            return entity;
        }
    }
}


